<?php

class tacgia extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->library("loadpage");
    }

    public function index() {
        $lp = new loadpage();
        $this->load->model("mtacgia");
        $tacgia = new Mtacgia();
        if (isset($_GET['matg'])) {
            $matg = $_GET['matg'];
            $tacgia->GetByMatg($matg);
            $data['matg'] = $matg;
            $data['tentg'] = $tacgia->get_tentg();
            $data['tieusu'] = $tacgia->get_tieusu();
            $lp->load(array("view_tacgia"), $data);
        }
    }

}

?>
